/** 构造函数创建类
 * 自定义医院类
 * @param {*} id 医院编码
 * @param {*} name 医院名称
 * @param {*} address 医院地址
 * @param {*} lng 经度
 * @param {*} lat 纬度
 * @param {*} activityCode 活动编码
 * @param {*} cityCode 城市编码
 * @param {*} contactName1 联系人1
 * @param {*} contactName1 联系人2
 * @param {*} tel1 电话1
 * @param {*} tel2 电话2
 * @param {*} chineseName 中文名
 * @param {*} englishName 英文名
 */
export function hospitalMD(id, name, address, lng, lat, activityCode, cityCode, contactName1, contactName2, tel1, tel2, chineseName, englishName) {
    this.id = id,
        this.name = name,
        this.address = address,
        this.lng = lng,
        this.lat = lat,
        this.activityCode = activityCode,
        this.cityCode = cityCode,
        this.contactName1 = contactName1,
        this.contactName2 = contactName2,
        this.tel1 = tel1,
        this.tel2 = tel2,
        this.chineseName = chineseName,
        this.englishName = englishName
}
/**
 * 自定义场馆类
 * @param {*} id 场馆编码
 * @param {*} activityCode 活动编码
 * @param {*} cityCode 城市编码
 * @param {*} name 中文描述
 * @param {*} CHIDescription 中文描述
 * @param {*} startTime 开始时间
 * @param {*} endTime 结束时间
 * @param {*} lng 经度
 * @param {*} lat 纬度
 * @param {*} zoomLevel 缩放级别
 * @param {*} type 场馆类型
 * @param {*} ENGDescription 英文描述
 * @param {*} ENGLongDescription 英文详细描述
 * @param {*} CHILongDescription 中文详细描述
 * @param {*} TVName 应该跟电视转播显示的名称
 * @param {*} indoorOutdoor 室内外
 * @param {*} cluster 场馆群
 * @param {*} project 项目
 * @param {*} address 场馆地址
 */
export function venueMD(id,
    activityCode,
    cityCode,
    name,
    CHIDescription,
    startTime,
    endTime,
    lng,
    lat,
    zoomLevel,
    type,
    ENGDescription,
    ENGLongDescription,
    CHILongDescription,
    TVName,
    indoorOutdoor,
    cluster,
    project,
    address) {
    this.id = id
    this.activityCode = activityCode
    this.cityCode = cityCode
    this.name = name
    this.CHIDescription = CHIDescription
    this.startTime = startTime
    this.endTime = endTime
    this.lng = lng
    this.lat = lat
    this.zoomLevel = zoomLevel
    this.type = type
    this.ENGDescription = ENGDescription
    this.ENGLongDescription = ENGLongDescription
    this.CHILongDescription = CHILongDescription
    this.TVName = TVName
    this.indoorOutdoor = indoorOutdoor
    this.cluster = cluster
    this.project = project
    this.address = address
    this.children = []//存医疗点的数组
}

/**
 * 场馆详情
 * @param {*} address  场馆地址
 * @param {*} ambulanceNumber 救护车数
 * @param {*} matchEndTime 比赛结束时间
 * @param {*} matchName 比赛项目
 * @param {*} matchStart 比赛是否开始
 * @param {*}matchStartName 
 * @param {*} matchStartTime 
 * @param {*} medicalPointNumber 医疗点数
 * @param {*} name 场馆名
 * @param {*} status 赛事的状态
 */
export function venueDetailMD(address, ambulanceNumber, matchEndTime, matchName, matchStart, matchStartName, matchStartTime, medicalPointNumber, name, status) {
    this.address = address
    this.ambulanceNumber = ambulanceNumber
    this.matchEndTime = matchEndTime
    this.matchName = matchName
    this.matchStart = matchStart
    this.matchStartName = matchStartName
    this.matchStartTime = matchStartTime
    this.medicalPointNumber = medicalPointNumber
    this.name = name
    this.status = status
}
/**
 * 场馆内医疗点
 * @param {*场馆内医疗点id} id 
 * @param {*场馆内医疗点名称} name 
 * @param {*医疗点经度} lng 
 * @param {*医疗点纬度} lat 
 */
export function venueMedicalPointMD(id, name, lng, lat, type, doctor, nurse, online) {
    this.id = id
    this.name = name
    this.lng = lng
    this.lat = lat
    this.type = type
    this.doctor = doctor
    this.nurse = nurse
    this.online = online
}
/**
 * 自定义车辆类
 * @param {*} id 车组编码
 * @param {*} name 车组名
 * @param {*} address 地址
 * @param {*} lng 经度
 * @param {*} lat 纬度
 */
export function ambulanceMD(id, name, address, lng, lat, children) {
    this.id = id,
        this.name = name,
        this.address = address,
        this.lng = lng,
        this.lat = lat,
        this.children = children,
        this.childrenMD = ambulanceChildMD //子类
}

/**
 * ambulanceMD 的子类
 * @param {*} id 车辆编码
 * @param {*} name 车牌号
 * @param {*} lng 经度
 * @param {*} lat 纬度
 * @param {*} activityCode 活动编码
 * @param {*} activityVenuesCode 场馆编码
 * @param {*} cityCode 城市编码
 * @param {*} doctor 医生
 * @param {*} driver 司机
 * @param {*} eventCode 事件编码
 * @param {*} isOnline 是否在线
 * @param {*} nurse 护士
 * @param {*} stateCode 状态编码
 * @param {*} stateName 状态名
 * @param {*} stretcher 担架工
 * @param {*} telephone 车载电话
 * @param {*} direction 所属分站
 * @param {*} isEffective 所属分站
 */
function ambulanceChildMD(id, name, lng, lat, activityCode, activityVenuesCode, cityCode, doctor, driver, eventCode, isOnline,
    nurse, stateCode, stateName, stretcher, telephone, direction, isEffective) {
    this.id = id
    this.name = name
    this.lng = lng
    this.lat = lat
    this.activityCode = activityCode
    this.activityVenuesCode = activityVenuesCode
    this.cityCode = cityCode
    this.doctor = doctor
    this.driver = driver
    this.eventCode = eventCode
    this.isOnline = isOnline
    this.nurse = nurse
    this.stateCode = stateCode
    this.stateName = stateName
    this.stretcher = stretcher
    this.telephone = telephone
    this.direction = direction
    this.isEffective = isEffective
}

/**
 * 任务
 * @param {*} id 
 * @param {*} patient 
 * @param {*} updateTime 
 * @param {*} status 
 */
export function taskStatusMD(id, patient, updateTime, status) {
    this.id = id,
        this.patient = patient,
        this.updateTime = updateTime,
        this.status = status
}

/**
 * 智能调度列表
 * @param {*} id 
 * @param {*} illnessState 
 * @param {*} tag 
 * @param {*} ambulance 
 * @param {*} hospital 
 */
export function inteligentSchedulMD(id, illnessState, tag, ambulance, hospital, ambulanceLng, ambulanceLat, hospitalLng, hospitalLat) {
    this.id = id
    this.illnessState = illnessState
    this.tag = tag
    this.ambulance = ambulance
    this.hospital = hospital
    this.ambulanceLng = ambulanceLng
    this.ambulanceLat = ambulanceLat
    this.hospitalLng = hospitalLng
    this.hospitalLat = hospitalLat

}
/**
 * 病人列表
 * @param {} id 
 * @param {*} illnessState 
 * @param {*} tag 
 * @param {*} ambulance 
 * @param {*} hospital 
 */
export function patientListMD(id, illnessState, patientName, group, time, status, tag, sendHospital, sceneAddress, diagnosis, ambulance) {
    this.id = id,
        this.illnessState = illnessState,
        this.patientName = patientName,
        this.group = group,
        this.time = time,
        this.status = status,
        this.tag = tag,
        this.sendHospital = sendHospital,
        this.sceneAddress = sceneAddress,
        this.diagnosis = diagnosis,
        this.ambulance = ambulance
}

/** 病历信息
 * 诊断
 * @param {*病例号} patientRecordCode 
 * @param {*序号} order 
 * @param {*疾病分类} illtype 
 * @param {*特殊标签} specialTag 
 * @param {*主要症状} mainSymptoms 
 * @param {*受伤部位} hurtPart 
 * @param {*诊断时间} diangoTime 
 * @param {*预检分级} preCheckLevel 
 * @param {*诊断大类} parentDiagnosis 
 * @param {*病历等级} level 
 * @param {*诊断子级} childrenDiagnosis
 * @param {*填写人员工号} fillingPersonne 
 * @param {*填写时间} date 
 * @param {*填写人员姓名} personneName 
 */
export function diagnosisMD(
    order,
    // patientRecordCode,
    hurtPart,
    specialTag,
    diangoTime,
    preCheckLevel,
    parentDiagnosis,
    childrenDiagnosis,

    // illtype,
    // mainSymptoms,
    // level,
    // fillingPersonne,
    // date, 
    // personneName
    ) {
    this.order = order
    // this.patientRecordCode = patientRecordCode
    this.hurtPart = hurtPart
    this.specialTag = specialTag
    this.diangoTime = diangoTime
    this.preCheckLevel = preCheckLevel
    this.parentDiagnosis = parentDiagnosis
    this.childrenDiagnosis = childrenDiagnosis

    // this.illtype = illtype
    // this.mainSymptoms = mainSymptoms
    // this.level = level
    // this.fillingPersonne = fillingPersonne
    // this.date = date
    // this.personneName = personneName
}

/** 
 * 查体
 * @param {*病历编码} patientRecordCode 
 * @param {*序号} order 
 * @param {*瞳孔左} leftPupil 
 * @param {*对光反应左} leftDGFY 
 * @param {*瞳孔右} rightPupil 
 * @param {*头部} head 
 * @param {*颈部} neck 
 * @param {*胸部} chest 
 * @param {*肺部} lung 
 * @param {*心脏} heart 
 * @param {*腹部} abdomen 
 * @param {*骨盆} pelvis 
 * @param {*四肢} armlegs 
 * @param {*脊柱} backbone 
 * @param {*神经} neurologicSigns 
 * @param {*其他} others 
 * @param {*填写人员工号} fillingPersonne 
 * @param {*填写时间} date 
 * @param {*对光反应右} rightDGFY 
 * @param {*填写人员姓名} personneName 
 * @param {*瞳孔左补充} leftPupilSupplement 
 * @param {*瞳孔右补充} rightPupilSupplement 
 * @param {*头部补充} cephalosomeSupplement 
 * @param {*颈部补充} neckSupplement 
 * @param {*胸部补充} chestSupplement 
 * @param {*肺部补充} lungSupplement 
 * @param {*腹部补充} abdomenSupplement 
 * @param {*骨盆补充} pelvisSupplement 
 * @param {*四肢补充} armsAndLegsSupplement 
 * @param {*脊柱补充} spineSupplement 
 * @param {*神经补充} neuroSupplement 
 * @param {*心脏补充} heartSupplement 
 */
export function bodyCheckMD(
    order,
    // patientRecordCode,
    leftPupil,
    leftPupilSupplement,
    rightPupil,
    rightPupilSupplement,
    head,
    cephalosomeSupplement,
    neck,
    neckSupplement,
    chest,
    chestSupplement,
    lung,
    lungSupplement,

    heart,
    heartSupplement,
    abdomen,
    abdomenSupplement,
    pelvis,
    pelvisSupplement,
    armlegs,
    armsAndLegsSupplement,
    backbone,
    spineSupplement,
    neurologicSigns,
    neuroSupplement,
    others,
    // fillingPersonne,
    // date,
    // leftDGFY,
    // rightDGFY,
    // personneName,
) {
    this.order = order
    // this.patientRecordCode = patientRecordCode
    this.leftPupil = leftPupil
    this.leftPupilSupplement = leftPupilSupplement
    this.rightPupil = rightPupil
    this.rightPupilSupplement = rightPupilSupplement
    this.head = head
    this.cephalosomeSupplement = cephalosomeSupplement
    this.neck = neck
    this.neckSupplement = neckSupplement
    this.chest = chest
    this.chestSupplement = chestSupplement
    this.lung = lung
    this.lungSupplement = lungSupplement
    this.heart = heart
    this.heartSupplement = heartSupplement
    this.abdomen = abdomen
    this.abdomenSupplement = abdomenSupplement
    this.pelvis = pelvis
    this.pelvisSupplement = pelvisSupplement
    this.armlegs = armlegs
    this.armsAndLegsSupplement = armsAndLegsSupplement
    this.backbone = backbone
    this.spineSupplement = spineSupplement
    this.neurologicSigns = neurologicSigns
    this.neuroSupplement = neuroSupplement
    this.others = others
    // this.fillingPersonne = fillingPersonne
    // this.date = date
    // this.leftDGFY = leftDGFY
    // this.rightDGFY = rightDGFY
    // this.personneName = personneName
}
/**
 * 查体体征
 * @param {*病历编码} patientRecordCode 
 * @param {*序号} order 
 * @param {*体温} T 
 * @param {*心率} P 
 * @param {*呼吸} R 
 * @param {*收缩压} SBP 
 * @param {*血氧} SPO2 
 * @param {*填写人员工号} fillingPersonne 
 * @param {*填写时间} date 
 * @param {*神志} consciousness 
 * @param {*舒张压} OBP 
 * @param {*填写人员姓名} personneName 
 * @param {*得分} score 
 * @param {*得分说明} explain 
 */
export function CTTZMD(
    // patientRecordCode,
    order,
    T,
    P,
    R,
    SBP,
    SPO2,
    consciousness,
    score,
    // OBP,
    // personneName,
    // fillingPersonne,
    // date,
    // explain
) {
    this.order = order
    // this.patientRecordCode = patientRecordCode
    this.T = T
    this.P = P
    this.R = R
    this.SBP = SBP
    this.SPO2 = SPO2
    this.consciousness = consciousness
    this.score = score
    // this.OBP = OBP
    // this.personneName = personneName
    // this.fillingPersonne = fillingPersonne
    // this.date = date
    // this.explain = explain
}
/**
 * 处置
 * @param {*病历编码} patientRecordCode 
 * @param {*序号} order 
 * @param {*检查} check 
 * @param {*病情告知内容} illTell 
 * @param {*循环支持内容} circulatorySupport 
 * @param {*气道管理内容} airwayManagement 
 * @param {*包扎固定内容} bindFixed 
 * @param {*药物治疗} drugCure 
 * @param {*其他内容} others 
 * @param {*填写人员工号} fillingPersonne 
 * @param {*填写时间} date 
 * @param {*填写时间} personneName 
 */
export function dispositionMD(
    // patientRecordCode,
    order,
    check,
    illTell,
    circulatorySupport,
    airwayManagement,
    bindFixed,
    drugCure,
    JJZLPicture,
    // others,
    // fillingPersonne,
    // date,
    // personneName,
    ) {
    this.order = order
    // this.patientRecordCode = patientRecordCode
    this.check = check
    this.illTell = illTell
    this.circulatorySupport = circulatorySupport
    this.airwayManagement = airwayManagement
    this.bindFixed = bindFixed
    this.drugCure = drugCure
    this.JJZLPicture = JJZLPicture
    // this.others = others
    // this.fillingPersonne = fillingPersonne
    // this.date = date
    // this.personneName = personneName
}
/**
 * 病史
 * @param {*病历编码} patientRecordCode
 * @param {*序号} order 
 * @param {*主诉} mainSuit 
 * @param {*现病历史} curillhistory 
 * @param {*既往史} previousHistory 
 * @param {*用药历史} useDrugHistory 
 * @param {*过敏历史} irritabilityHistory 
 * @param {*最后进食时间} lastEatTime 
 * @param {*吃哪些食物} eatFoot 
 * @param {*填写人员工号} fillingPersonne 
 * @param {*填写时间} date 
 * @param {*填写人员姓名} personneName 
 * @param {*流行病学接触史或疫区旅居史;1 ture 0 false} sojournHistory 
 */
export function illHistoryMD(
    // patientRecordCode,
    order,
    mainSuit,
    curillhistory,
    previousHistory,
    useDrugHistory,
    irritabilityHistory,
    // lastEatTime,
    // eatFoot,
    // fillingPersonne,
    // date,
    // personneName,
    sojournHistory
) {
    this.order = order
    // this.patientRecordCode = patientRecordCode
    this.mainSuit = mainSuit
    this.curillhistory = curillhistory
    this.previousHistory = previousHistory
    this.useDrugHistory = useDrugHistory
    this.irritabilityHistory = irritabilityHistory
    // this.lastEatTime = lastEatTime
    // this.eatFoot = eatFoot
    // this.fillingPersonne = fillingPersonne
    // this.date = date
    // this.personneName = personneName
    this.sojournHistory = sojournHistory
}

/**
 * 辅助检查
 * @param {*病历编码} patientRecordCode
 * @param {*序号} order 
 * @param {*血糖} bloodGlucose 
 * @param {*心电图} ECG 
 * @param {*填写人员工号} fillingPersonne 
 * @param {*填写时间} date
 * @param {*心电图补充} ECGSupplement
 * @param {*填写人员姓名} personneName
 */
export function auxiliaryExamMD(
    // patientRecordCode,
    order,
    bloodGlucose,
    ECG,
    XDTPicture,
    ECGSupplement,
    // fillingPersonne,
    // date,
    // personneName,
    XDJH,
    XDJHPicture) {
    this.order = order
    // this.patientRecordCode = patientRecordCode
    this.bloodGlucose = bloodGlucose
    this.ECG = ECG
    this.XDTPicture = XDTPicture
    this.ECGSupplement = ECGSupplement
    this.XDJH = XDJH
    this.XDJHPicture = XDJHPicture
    // this.personneName = personneName
    // this.fillingPersonne = fillingPersonne
    // this.date = date
}
/**
 * 去向
 * @param {*病历编码} patientRecordCode 
 * @param {*序号} order 
 * @param {*就诊时间} startTime 
 * @param {*离开时间} endTime 
 * @param {*医生} doctor 
 * @param {*护士} nurse 
 * @param {*病情分级} grade 
 * @param {*病情转归} BQZG 
 * @param {*去向} QX 
 * @param {*车辆/医院名称} address 
 * @param {*填写人员工号} fillingPersonne 
 * @param {*填写时间} date 
 * @param {*车辆/医院编码} addressCode 
 * @param {*填写人员姓名} personneName 
 */
export function whereaboutsMD(
    // patientRecordCode,
    order,
    startTime,
    endTime,
    doctor,
    QX,
    // nurse,
    // grade,
    // BQZG,
    // address,
    // fillingPersonne,
    // date,
    // addressCode,
    // personneName
    ) {
    this.order = order
    // this.patientRecordCode = patientRecordCode
    this.startTime = startTime
    this.endTime = endTime
    this.doctor = doctor
    this.QX = QX
    // this.address = address
     // this.nurse = nurse
    // this.grade = grade
    // this.BQZG = BQZG
    // this.fillingPersonne = fillingPersonne
    // this.date = date
    // this.addressCode = addressCode
    // this.personneName = personneName
}
/**
 * 病人检查详细细节table样式格式化
 * @param {*} checkItem 
 * @param {*} val 
 */
export function tableDataMD(checkItem, val, isPicFlag, picUrl, XDJHPicture, XDTPicture, JJZLPicture) {
    this.checkItem = checkItem
    this.val = val
    this.isPicFlag = isPicFlag
    this.XDJHPicture = XDJHPicture
    this.XDTPicture = XDTPicture
    this.JJZLPicture = JJZLPicture
}
/**
 * 药品耗材树格式化
 * @param {*} id 
 * @param {*} name 
 */
export function treeFormatDataMD(id, name) {
    this.id = id
    this.name = name
}

/**
 * 病历基础信息（智能调度）
 * @param {*姓名} Name  
 * @param {*年龄} Age 
 * @param {*} AgeType 年龄单位
 * @param {*} AmbCode 转送车辆编码
 * @param {*} AmbName 转送车辆名称
 * @param {*} AmbulanceDoctor 车辆医生
 * @param {*} AmbulanceDoctorWork 车辆医生工号
 * @param {*} BloodType 血型
 * @param {*} CertificateCode  证件号
 * @param {*} CertificateType 证件类型
 * @param {*} Company 单位
 * @param {*} Contacts 联系人
 * @param {*} DiseaseKeyword 疾病关键词
 * @param {*} HospitalCode 送往医院编码
 * @param {*} HospitalDoctor 医院医生
 * @param {*} HospitalDoctorWork 医院医生工号
 * @param {*} HospitalName 送往医院名称
 * @param {*} IllnessLevel 病情等级
 * @param {*} IsGroup 是否群体事件
 * @param {*} IsReinforcement 是否需要增援
 * @param {*} IsVip 是否VIP
 * @param {*} Nationality 国籍（地区）
 * @param {*} PatientRecordCode 病历编码
 * @param {*} PatientType 患者类型
 * @param {*} Position 职位
 * @param {*} SceneDoctor 现场医生
 * @param {*} SceneDoctorWork 现场医生工号
 * @param {*} SeeADoctorDate 就诊时间
 * @param {*} Sex 性别
 * @param {*} State 1待转送；2转送中；3已转送；4处置完成
 * @param {*} StateName 状态名称
 * @param {*} Symptom 症状
 * @param {*} TaskCode 任务编码
 * @param {*} Telephone 联系电话
 * @param {*} UpdateTime 更新时间
 * @param {*} VenuesCode 场馆编码
 * @param {*} VenuesName 场馆名称
 */
export function PatientDataMD(
    Name,
    Age,
    AgeType,
    AmbCode,
    AmbName,
    AmbulanceDoctor,
    AmbulanceDoctorWork,
    BloodType,
    CertificateCode,
    CertificateType,
    Company,
    Contacts,
    DiseaseKeyword,
    HospitalCode,
    HospitalDoctor,
    HospitalDoctorWork,
    HospitalName,
    IllnessLevel,
    IsGroup,
    IsReinforcement,
    IsVip,
    Nationality,
    PatientRecordCode,
    PatientType,
    Position,
    SceneDoctor,
    SceneDoctorWork,
    SeeADoctorDate,
    Sex,
    State,
    StateName,
    Symptom,
    TaskCode,
    Telephone,
    UpdateTime,
    VenuesCode,
    VenuesName,
    ambLat,
    ambLng,
    hosLat,
    hosLng,
    CityCode,
    mpLng,
    mpLat
) {
    this.Name = Name
    this.Age = Age
    this.AgeType = AgeType
    this.AmbCode = AmbCode
    this.AmbName = AmbName
    this.AmbulanceDoctor = AmbulanceDoctor
    this.AmbulanceDoctorWork = AmbulanceDoctorWork
    this.BloodType = BloodType
    this.CertificateCode = CertificateCode
    this.CertificateType = CertificateType
    this.Company = Company
    this.Contacts = Contacts
    this.DiseaseKeyword = DiseaseKeyword
    this.HospitalCode = HospitalCode
    this.HospitalDoctor = HospitalDoctor
    this.HospitalDoctorWork = HospitalDoctorWork
    this.HospitalName = HospitalName
    this.IllnessLevel = IllnessLevel
    this.IsGroup = IsGroup
    this.IsReinforcement = IsReinforcement
    this.IsVip = IsVip
    this.Nationality = Nationality
    this.PatientRecordCode = PatientRecordCode
    this.PatientType = PatientType
    this.Position = Position
    this.SceneDoctor = SceneDoctor
    this.SceneDoctorWork = SceneDoctorWork
    this.SeeADoctorDate = SeeADoctorDate
    this.Sex = Sex
    this.State = State
    this.StateName = StateName
    this.Symptom = Symptom
    this.TaskCode = TaskCode
    this.Telephone = Telephone
    this.UpdateTime = UpdateTime
    this.VenuesCode = VenuesCode
    this.VenuesName = VenuesName
    this.ambLat = ambLat
    this.ambLng = ambLng
    this.hosLat = hosLat
    this.hosLng = hosLng
    this.CityCode = CityCode
    this.mpLng = mpLng
    this.mpLat = mpLat
}

/**
 * 场馆内赛程
 * @param {*赛事编码} code 
 * @param {*结束时间} endTime 
 * @param {*是否有效} isEffective 
 * @param {*比赛名字} matchName 
 * @param {*开始时间} startTime 
 * @param {*场馆编码} venuesCode 
 * @param {*比赛的前中后} isCurMatch 
 * @param {*小圆圈颜色} color 
 * @param {*小圆圈类型info,danger,primary} type 
 */
export function scheduleListMD(
    code,
    endTime,
    isEffective,
    matchName,
    startTime,
    venuesCode,
    isCurMatch,
    color,
    type,
) {
    this.code = code
    this.endTime = endTime
    this.isEffective = isEffective
    this.matchName = matchName
    this.startTime = startTime
    this.venuesCode = venuesCode
    this.isCurMatch = isCurMatch
    this.color = color
    this.type = type
}